package com.bsoft.project.base;


import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2020/2/17.
 */
public class PageData {
    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(long totalElements) {
        this.totalElements = totalElements;
    }

    private Object content;
    private long totalElements;



    public PageData(Object content, long totalElements) {
        this.content = content;
        this.totalElements = totalElements;
    }

    public Map<String,Object> toMap(){
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("content",this.content);
        map.put("totalElements",this.totalElements);
        return map;
    }
}
